package com.luccs;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.config.server.EnableConfigServer;

/**
 * 程序主程
 * 使用 localhost:7001/config-client/test/访问 因为配置文件的命名为config-client-dev.properties
 */
//@EnableDiscoveryClient //将config-server注册到服务注册中心
@EnableConfigServer  //开启spring cloud config的服务端功能 测试git
@SpringBootApplication
public class ConfigServerApplication 
{
    public static void main( String[] args )
    {
        new SpringApplicationBuilder(ConfigServerApplication.class).web(true).run(args);
    }
}
